package com.cn.lycss.servlet;

import com.cn.lycss.model.CompanyModel;
import com.cn.lycss.model.NavModel;
import com.cn.lycss.service.CompanyService;
import com.cn.lycss.service.NavService;

import javax.servlet.http.HttpServletRequest;

public class CommenServlet {
    public static void aa(HttpServletRequest req){
        CompanyService companyService=new CompanyService();
        CompanyModel companyModel= companyService.getCompanyModel();
        req.setAttribute("companyModel" ,companyModel);

        /*-------------------nav---*/
        NavModel[] navModels= NavService.getNavModel();
        req.setAttribute("navModel",navModels);

    }
}
